body {
    padding: 100px;
}

/*单侧投影*/
.shadow-one-side {
    width: 200px;
    height: 100px;
    background: orange;
    box-shadow: 0 6px 4px -4px rgba(0, 0, 0, 0.5);
}

/* 邻边投影 */
.shadow-two-sides {
    width: 200px;
    height: 100px;
    background: orange;
    box-shadow: 3px 3px 6px -3px rgba(0, 0, 0, 1);
}

/*双侧投影*/
.shadow-opposite-sides {
    width: 200px;
    height: 100px;
    background: orange;
    box-shadow: 5px 0 4px -4px rgba(0, 0, 0, 0.5),
    -5px 0 4px -4px rgba(0, 0, 0, 0.5);
}

/*不规则投影*/
.drop-shadow {
    width: 200px;
    height: 100px;
    background: linear-gradient(45deg, transparent 15px, skyblue 0) left,
    linear-gradient(-45deg, transparent 15px, skyblue 0) right;
    background-size: 50% 100%;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 4px black);
}

/*染色效果-基于滤镜的方案*/
.color-tint-filter {
    transition: .5s filter;
    width: 200px;
    filter: sepia(1) saturate(4) hue-rotate(295deg);
}

.color-tint-filter:hover {
    filter: none;
}

/*染色效果-基于混合模式-mix-blend-mode*/
.color-tint-a {
    display: inline-block;
    text-decoration: none;
    background: hsl(335, 100%, 50%);
}

.color-tint-a img {
    width: 200px;
    mix-blend-mode: luminosity;
}

/*染色效果-基于混合模式-background-blend-mode*/
.color-tint-background {
    width: 200px;
    height: 100px;
    display: inline-block;
    background-size: cover;
    background-color: hsl(335, 100%, 50%);
    background-image: url("cats.jpg");
    background-blend-mode: luminosity;
    transition: 0.5s background-color;
}

.color-tint-background:hover {
    background-color: transparent;
}

/*毛玻璃效果*/

.frosted-glass {
    width: 400px;
    height: 200px;
    background: url("cats.jpg") 0 / contain;
    display: flex;
    justify-content: center;
    align-items: center;
}

.frosted-glass-content {
    width: 300px;
    height: 150px;
    background: hsla(0, 0%, 100%, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.frosted-glass-content::before {
    position: absolute;
    inset: 0 0 0 0;
    content: '';
    background: url("cats.jpg") 0 / contain;
    /*background: rgba(255, 0, 0, 0.5);*/
    z-index: -1;
    filter: blur(4px);
    margin: -6px;
}

/*折角：切角实现方案*/
.folded-corner {
    display: inline-block;
    width: 200px;
    height: 100px;
    /*background: #58a;*/
    /*background: linear-gradient(-135deg, transparent 15px, #58a 0);*/
    background: linear-gradient(to left bottom, transparent 50%, rgba(0, 0, 0, 0.4) 0) no-repeat 100% 0 / 2em 2em,
    linear-gradient(-135deg, transparent 1.5em, #58a 0);
    /*border: 1px solid #666;*/
}

/* 折角：其他角度的折角 */
.folded-corner-realistic {
    display: inline-block;
    width: 200px;
    height: 100px;
    background: linear-gradient(-150deg, transparent 1.5em, #58a 0);
    position: relative;
    border-radius: 0.5em;
}

.folded-corner-realistic::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    background: linear-gradient(to left bottom, transparent 50%, rgba(0, 0, 0, 0.2) 0, rgba(0, 0, 0, 0.4) 100%) no-repeat 100% 0;
    width: 1.73em;
    height: 3em;
    transform: translateY(-1.3em) rotateZ(-30deg);
    transform-origin: bottom right;
    border-bottom-left-radius: inherit;
    box-shadow: -.2em .2em .3em -.1em rgba(0, 0, 0, 0.15);
}
